#include "progressform.h"
#include "ui_progressform.h"

progressForm::progressForm(QWidget *parent) :
    QWidget(parent),
    m_ui(new Ui::progressForm)
{
    m_ui->setupUi(this);
    needToWait = true;
}

progressForm::~progressForm()
{
    delete m_ui;
}

void progressForm::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void progressForm::setWaiting ( bool w )
{
    needToWait = w;
}

void progressForm::progressChange( int value )
{
    m_ui->progressBar->setValue( value );
}
